package com.ruoyi.oos.overrun.mapper;

import java.util.List;

import com.ruoyi.oos.overrun.domain.Dutycount;
import com.ruoyi.oos.overrun.domain.Dutymonth;
import com.ruoyi.oos.overrun.domain.Dutyyear;
import com.ruoyi.oos.overrun.domain.OverrunRecord;
import com.ruoyi.oos.overrun.domain.Tagyear;
import com.ruoyi.oos.overrun.domain.Tagcount;
import com.ruoyi.oos.overrun.domain.Tagmonth;

/**
 * 超限记录Mapper接口
 * 
 * @author bulang
 * @date 2020-05-13
 */
public interface OverrunRecordMapper 
{
    /**
     * 查询超限记录
     * 
     * @param id 超限记录ID
     * @return 超限记录
     */
    public OverrunRecord selectOverrunRecordById(Long id);

    /**
     * 查询超限记录列表
     * 
     * @param overrunRecord 超限记录
     * @return 超限记录集合
     */
    public List<OverrunRecord> selectOverrunRecordList(OverrunRecord overrunRecord);
    
    /**
     * 按测点统计超限记录
     * @param overrunRecord
     * @return
     */
    public List<Tagcount> selectCountTagList(OverrunRecord overrunRecord);
    
    /**
     * 测点月报表统计
     * @param overrunRecord
     * @return
     */
    public List<Tagmonth> selectTagMonthList(OverrunRecord overrunRecord);
    
    /**
     * 测点月报表明细统计
     * @param overrunRecord
     * @return
     */
    public List<OverrunRecord> selectTagMonthDetailList(OverrunRecord overrunRecord);

    /**
     * 测点年报表统计
     * @param overrunRecord
     * @return
     */
    public List<Tagyear> selectTagYearList(OverrunRecord overrunRecord);
    
    /**
     * 测点年报表明细统计
     * @param overrunRecord
     * @return
     */
    public List<OverrunRecord> selectTagYearDetailList(OverrunRecord overrunRecord);
    
    /**
     * 按轮值统计超限记录
     * @param overrunRecord
     * @return
     */
    public List<Dutycount> selectCountDutyList(OverrunRecord overrunRecord);
    
    /**
     * 按测点和轮值统计超限记录
     * @param overrunRecord
     * @return
     */
    public List<OverrunRecord> selectCountDetailList(OverrunRecord overrunRecord);

    /**
     * 轮值月报表统计
     * @param overrunRecord
     * @return
     */
    public List<Dutymonth> selectDutyMonthList(OverrunRecord overrunRecord);
    
    /**
     * 轮值月报表明细统计
     * @param overrunRecord
     * @return
     */
    public List<OverrunRecord> selectDutyMonthDetailList(OverrunRecord overrunRecord);

    /**
     * 轮值年报表统计
     * @param overrunRecord
     * @return
     */
    public List<Dutyyear> selectDutyYearList(OverrunRecord overrunRecord);
    
    /**
     * 轮值年报表明细统计
     * @param overrunRecord
     * @return
     */
    public List<OverrunRecord> selectDutyYearDetailList(OverrunRecord overrunRecord);
    
    /**
     * 新增超限记录
     * 
     * @param overrunRecord 超限记录
     * @return 结果
     */
    public int insertOverrunRecord(OverrunRecord overrunRecord);

    /**
     * 修改超限记录
     * 
     * @param overrunRecord 超限记录
     * @return 结果
     */
    public int updateOverrunRecord(OverrunRecord overrunRecord);

    /**
     * 删除超限记录
     * 
     * @param id 超限记录ID
     * @return 结果
     */
    public int deleteOverrunRecordById(Long id);

    /**
     * 批量删除超限记录
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteOverrunRecordByIds(String[] ids);
    
    public int deleteOverReturnRecordByBean(OverrunRecord overrunRecord);
}
